package com.example.feilin.controller;

import com.example.feilin.entity.Driver;
import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Page;

public class DriverController extends Controller {

	public void index() {
		render("list.html");
	}
	
	public void json() {
		Page<Driver> page = Driver.me.paginate(getParaToInt("page"), getParaToInt("pagesize"));
		renderJson(page);
	}
}
